package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作岗位信息对象 job_position
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
public class JobPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 员工ID */
    @Excel(name = "员工ID")
    private String employeeId;

    /** 岗位名称 */
    @Excel(name = "岗位名称")
    private String positionName;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 任职开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任职开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 任职结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任职结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 是否为当前岗位(1=是,0=否) */
    @Excel(name = "是否为当前岗位(1=是,0=否)")
    private Integer isCurrent;

    /** 员工基本信息信息 */
    private List<EmployeeBasicInfo> employeeBasicInfoList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setEmployeeId(String employeeId) 
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() 
    {
        return employeeId;
    }

    public void setPositionName(String positionName) 
    {
        this.positionName = positionName;
    }

    public String getPositionName() 
    {
        return positionName;
    }

    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setIsCurrent(Integer isCurrent) 
    {
        this.isCurrent = isCurrent;
    }

    public Integer getIsCurrent() 
    {
        return isCurrent;
    }

    public List<EmployeeBasicInfo> getEmployeeBasicInfoList()
    {
        return employeeBasicInfoList;
    }

    public void setEmployeeBasicInfoList(List<EmployeeBasicInfo> employeeBasicInfoList)
    {
        this.employeeBasicInfoList = employeeBasicInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("positionName", getPositionName())
            .append("department", getDepartment())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("isCurrent", getIsCurrent())
            .append("employeeBasicInfoList", getEmployeeBasicInfoList())
            .toString();
    }
}
